package com.hospital.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hospital.domain.pojo.Department;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface DepMapper extends BaseMapper<Department> {

    @Select("select depName from department")
    List<String> queryDep();

    @Update("update Department set depName = #{name}, depInfo = #{info}, depLevel = #{level}, depPhone = #{phone} where depId = #{depId}")
    void updateDep(String name, String info, String level, String phone, Integer depId);
}
